<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewClienteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewClienteLabel_id}"/>
                    <h:outputText value="#{clienteController.selected.id}" title="#{bundle.ViewClienteTitle_id}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoLogradouro}"/>
                    <h:outputText value="#{clienteController.selected.enderecoLogradouro}" title="#{bundle.ViewClienteTitle_enderecoLogradouro}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoNumero}"/>
                    <h:outputText value="#{clienteController.selected.enderecoNumero}" title="#{bundle.ViewClienteTitle_enderecoNumero}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoComplemento}"/>
                    <h:outputText value="#{clienteController.selected.enderecoComplemento}" title="#{bundle.ViewClienteTitle_enderecoComplemento}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoBairro}"/>
                    <h:outputText value="#{clienteController.selected.enderecoBairro}" title="#{bundle.ViewClienteTitle_enderecoBairro}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoCep}"/>
                    <h:outputText value="#{clienteController.selected.enderecoCep}" title="#{bundle.ViewClienteTitle_enderecoCep}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoCidade}"/>
                    <h:outputText value="#{clienteController.selected.enderecoCidade}" title="#{bundle.ViewClienteTitle_enderecoCidade}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_enderecoUf}"/>
                    <h:outputText value="#{clienteController.selected.enderecoUf}" title="#{bundle.ViewClienteTitle_enderecoUf}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_telefoneCelular}"/>
                    <h:outputText value="#{clienteController.selected.telefoneCelular}" title="#{bundle.ViewClienteTitle_telefoneCelular}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_telefoneResidencial}"/>
                    <h:outputText value="#{clienteController.selected.telefoneResidencial}" title="#{bundle.ViewClienteTitle_telefoneResidencial}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_telefoneComercial}"/>
                    <h:outputText value="#{clienteController.selected.telefoneComercial}" title="#{bundle.ViewClienteTitle_telefoneComercial}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{clienteController.destroyAndView}" value="#{bundle.ViewClienteDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewClienteEditLink}"/>
                <br />
                <h:commandLink action="#{clienteController.prepareCreate}" value="#{bundle.ViewClienteCreateLink}" />
                <br />
                <h:commandLink action="#{clienteController.prepareList}" value="#{bundle.ViewClienteShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewClienteIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
